﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebClient.Controls
{
    public partial class verticalMenuAdmin : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.IsPostBack) {
                loadInfor();
            }
        }
        private void loadInfor() {
            if (Session["users"] != null)
            {
                DTO.Users item = (DTO.Users)Session["users"];
                lblUsers.Text ="Xin chao " + item.userName;
                this.Panel1.Visible = true;
            }
            else {
                this.Panel1.Visible = false;
                lblUsers.Text = "";
            }
        }
    }
}